<script type="text/javascript" >
    stFacebookToolbox.sortColumn();
    stFacebookToolbox.shortAction();
</script>
<div class="w100p bgl">
    <div class="w100p bgr">
        <div class="inner_container">
           <table class="widefat" cellspacing="0">
                <thead>
                    <tr>
                        <?php print_column_headers('stFacebookToolbox_stFacebookToolbox'); ?>
                    </tr>
                </thead>

                <tbody>
                <?php
                if (count($results) > 0) {
                    $tr_class = "";
                    $upload_data = wp_upload_dir();
                    foreach ($results as $result) {
                        if( empty($tr_class) || $tr_class == "class='bg_gray2'"){
                            $tr_class = "class='bg_gray1'";
                        }else{
                            $tr_class = "class='bg_gray2'";
                        }
                        echo "<tr id='$result->flagtypeid' $tr_class >"
                        . "<td>" . $result->flagname
                        . "<div class=\"row-actions short_action\">"
                        . "<span class='edit' action='edit_flag' short_action='' id='$result->flagtypeid'>Edit | </span>"
                        . "<span class='trash' short_action='delete' id='$result->flagtypeid' confirm='Are you sure you want to delete this flag?'>Trash </span>"
                        . "</div>"
                        . "</td>"
                        . "<td><font color='".$result->flagcolorcode."'>" . $result->flagcolorcode . "</font></td>"
                        . "<td>" . $result->flagdescription . "</td>"
                        . "</tr>"
                        ;
                    }
                }
                ?>
                </tbody>
            </table>
            <div class="page_d">
                <?php echo $pagination?>
                <div class="cl"></div>
            </div>

        </div>
    </div>
</div>
